/**
 * Created with  SublimeText
 * @Author:      Lyle
 * @DateTime:    2017-03-08 15:19:12
 * @Description: 
 */

import commonEN from '../../common/i18n/en'
import en from './en'
import commonZH from '../../common/i18n/zh'
import zh from './zh'

function getLanguage() {
    var obj = { 'language': commonEN };
    obj.language = Object.assign(commonEN, en);
    return obj.language;
};

export default {
    install(Vue, options) {
        Vue.mixin({
            computed: {
                language: function() {
                    return getLanguage();
                }
            },
        })
    }
}
